package gao.xiaolei.copyEntity;

import gao.xiaolei.entity.TestBase;
import gao.xiaolei.entity.TestDesign;
import lombok.Data;
import org.hibernate.annotations.ColumnDefault;

import javax.persistence.Column;
import javax.persistence.Entity;

@Entity
@Data
public class TestDesignCopy extends TestBase {
    @Column(name = "describe_text", columnDefinition = "text")
    private String describe;//测试计划描述或者主题文件夹描述

    @Column
    private Integer priority;// 测试计划的优先级

    @Column(columnDefinition = "INT default 0")
    private Integer grade;//分数

    @Column(columnDefinition = "char(32)")
    private String judge;//评分人

    public TestDesignCopy(TestDesign testDesign) {
        super(testDesign.getId(), testDesign.getTitle(), testDesign.getAuthor(), testDesign.getProject(), testDesign.getStatus(), testDesign.getLeaf(), testDesign.getParentId(), testDesign.getCreateDate(), testDesign.getUpdateDate());
        this.describe = testDesign.getDescribe();
        this.priority = testDesign.getPriority();
        this.grade=0;
    }

    public TestDesignCopy() {
    }
}
